package com.mtw.bbs.article.pojo.elasticsearch;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 话题elasticsearch类
 */
@Data
@Document(indexName = "topic_info")
public class TopicESIndex{




	/**
	 * 主键id
	 */
	@Id
	@Field(type = FieldType.Keyword)
	private String id;


	/**
	 * 话题名称
	 */
	@Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
	private String name;


	/**
	 * 封面
	 */
	@Field(type = FieldType.Keyword)
	private String cover;


	/**
	 * 状态
	 */
	@Field(type = FieldType.Integer)
	private Integer status;




}
